home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pMySpriteWidth, pMySpriteHeight
- global gSize
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- if (gSize = "8") or (gSize = "16") or (gSize = "32") then
- pMySpriteWidth = pMySprite.width
- pMySpriteHeight = pMySprite.height
- end if
- end
-
- on mouseWithin me
- if (gSize = "8") or (gSize = "16") or (gSize = "32") then
- if sprite(pMySprite).width = pMySpriteWidth then
- cursor(302)
- put "Current image. Click to zoom in." into field "status"
- else
- cursor(303)
- put "Current image. Click to zoom out." into field "status"
- end if
- else
- put "Current image." into field "status"
- end if
- end
-
- on mouseLeave me
- if (gSize = "8") or (gSize = "16") or (gSize = "32") then
- cursor(0)
- end if
- put EMPTY into field "status"
- end
-
- on mouseDown me
- if (gSize = "8") or (gSize = "16") or (gSize = "32") then
- repeat while the mouseDown
- cursor(304)
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp me
- if (gSize = "8") or (gSize = "16") or (gSize = "32") then
- if sprite(pMySprite).width = pMySpriteWidth then
- sprite(pMySprite).width = 64
- sprite(pMySprite).height = 64
- else
- sprite(pMySprite).width = pMySpriteWidth
- sprite(pMySprite).height = pMySpriteHeight
- end if
- end if
- end
-